package com.baize.cpdepus.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;

//物品
@Data
@ToString(doNotUseGetters = true)
@ApiModel("物品实体")
public class Article implements Serializable {
    @ApiModelProperty("物品ID")
    private Integer id;
    @ApiModelProperty("物品名")
    private String name;
    @ApiModelProperty("价格")
    private BigDecimal price;
    @ApiModelProperty("数量")
    private int amount;
    @ApiModelProperty("图片(oss)")
    private String picture;
    @ApiModelProperty("物品介绍")
    private String introduce;
    @ApiModelProperty("上架的用户id")
    private Integer userId;
}
